package com.ktjy;

import entity.pet;
import factory.PetDaoFactory;
import service.PetService;
import service.PetServiceImpl;

public class Main {
    public static void main(String[] args) {
        PetDaoFactory.defaultBeanName="PetDaoOracleImpl";
        PetService petService = new PetServiceImpl();
        pet pet=new pet();
        pet.setName("刘敦熙");
        petService.save(pet);
    }
}
